FROM java:8
ENV TZ Asia/Shanghai
ENV MYPATH /home/web
WORKDIR $MYPATH
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
VOLUME $MYPATH
ADD entrust-server.jar app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/home/web/app.jar","--spring.profiles.active=prod","-c"]
